﻿/*
 * Created by SharpDevelop.
 * User: wanggy
 * Date: 2009/09/28
 * Time: 18:00
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using XRunner.SDK.XExceptions;

namespace XRunner.SDK.XInterface
{
	/// <summary>
	/// Description of Runnable.
	/// </summary>
	public interface XIRunnable
	{
		/// <summary>
		/// 设置信息的配置
		/// </summary>
		void doConfig();

		/// <summary>
		/// 执行任务
		/// </summary>
		void doRun();

		/// <summary>
		/// 异常处理
		/// </summary>
		/// <param name="e">异常对象</param>
		void doHandle(XException e);

		/// <summary>
		/// 设置错误处理Handler
		/// </summary>
		/// <param name="handler">对象处理Handler</param>
		void setErrHandler(XIHandler handler);
	}
}
